import $http from '@/assets/js/http'
//app版本管理api

//app版本列表
export function getVersionList(param){
	return $http.get('/manage/app/version/list',{
		params:{
			platform:param.platform,
			pageIndex:param.pageIndex,
			pageSize:param.pageSize
		}
	})
}

//版本新增
export function postAddVersion(param) {
    return $http.post('/manage/app/version/add', {
        platform:param.type,
        versionNum:param.num,
        upgradeDesc:param.txt,
        upgradeUrl:param.url,
    });
}

//app版本删除
export function postDeleteVersion(id) {
    return $http.post('/manage/app/version/delete', {
        id:id,
    });
}

//版本修改
export function postEditVersion(param) {
    return $http.post('/manage/app/version/update', {
		id:param.id,
        platform:param.type,
        versionNum:param.num,
        upgradeDesc:param.txt,
        upgradeUrl:param.url,
    });
}

